package org.sbear.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 代码服务fegin客户端
 *
 * @author xxyWi
 * @date 2021/02/05
 */
@FeignClient(name="email-server")
public interface EmailServiceFeignClient {

    /**
     * 电子邮件
     *
     * @param email 电子邮件
     * @param code  代码
     * @return boolean
     */
    @RequestMapping("/email/{email}/{code}")
    public boolean email(@PathVariable(value = "email") String email, @PathVariable(value = "code") String code);

}
